<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>文本样式</title>
    <style>
        p{
            /*设置文本颜色*/
            color: #ff0000;
            background-color: #0ff000;
        }
        .align01{
            /*设置文本对齐，居中*/
            text-align: center;
        }
        .align02{
            /*设置文本对齐，左对齐*/
            text-align: left;
        }

        .align03{
            /*设置文本对齐，右对齐*/
            text-align: right;
        }

        .align04{
            text-decoration: overline;
        }

        .align05{
            text-decoration: line-through;
        }

        .align06{
            text-decoration: underline;
        }
        p.uppercase {
            text-transform: uppercase;
        }

        p.lowercase {
            text-transform: lowercase;
        }

        p.capitalize {
            text-transform: capitalize;
        }
    </style>
</head>
<body>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p class="uppercase">全部大写Hello World</p>
    <p class="lowercase">全部小写Hello World</p>
    <p class="capitalize">单词首字母大写hello world</p>
    <p class="align01">Hello World</p>
    <p class="align02">Hello World</p>
    <p class="align03">Hello World</p>
    <p class="align04">文本上划线</p>
    <p class="align05">文本中划线</p>
    <p class="align06">文本下划线</p>
</body>
</html>